using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblNganHangCauHoi
	{
	private int stt;
	private int idMH;
	private string dsLoaiCauHoi;
	private string img;
	private string media;
	private string noidung;
	private string cauTraLoi;
	public tblNganHangCauHoi()
	{}
	public tblNganHangCauHoi(int stt,int idMH,string dsLoaiCauHoi,string img,string media,string noidung,string cauTraLoi)
	{
	this.stt = stt;
	this.idMH = idMH;
	this.dsLoaiCauHoi = dsLoaiCauHoi;
	this.img = img;
	this.media = media;
	this.noidung = noidung;
	this.cauTraLoi = cauTraLoi;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdMH{
	get { return this.idMH;}
	set {this.idMH=value;}
	}
	public string DsLoaiCauHoi{
	get { return this.dsLoaiCauHoi;}
	set {this.dsLoaiCauHoi=value;}
	}
	public string Img{
	get { return this.img;}
	set {this.img=value;}
	}
	public string Media{
	get { return this.media;}
	set {this.media=value;}
	}
	public string Noidung{
	get { return this.noidung;}
	set {this.noidung=value;}
	}
	public string CauTraLoi{
	get { return this.cauTraLoi;}
	set {this.cauTraLoi=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idMH+"; "+this.dsLoaiCauHoi+"; "+this.img+"; "+this.media+"; "+this.noidung+"; "+this.cauTraLoi+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblNganHangCauHoi me=(tblNganHangCauHoi)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 